﻿@model SoftHotel.Models.Ambiente

@{
    ViewBag.Title = "Detalle ambiente";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Desactivar ambiente</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    
    <p>
    &nbsp;
    </p>
    
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Detalle Ambiente</legend>

    @Html.HiddenFor(model => model.idAmbiente)

    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;">
	<tbody><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;" align="">@Html.LabelFor(model => model.idSede)</td>
		<td>
			 <div class="editor-field">
                @Html.DisplayFor(model => model.sede.nombre)
            </div>
		</td>
		<td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.nombre)</td>
		<td>
			<div class="editor-field">
                @Html.DisplayFor(model => model.nombre)
            </div>
		</td>
	</tr><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.pTipoAmbiente)</td>
		<td>
			<div class="editor-field">
                @Html.DisplayFor(model => model.pTipoAmbiente.valor)
            </div>
		</td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.piso)</td>
		<td>
            <div class="editor-field">
                @Html.DisplayFor(model => model.piso)
            </div>
        </td>	
    </tr><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.capacidad)</td>
		<td>
            <div class="editor-field">
                @Html.DisplayFor(model => model.capacidad)
            </div>
        </td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.descripcion)</td>	
		<td>
            <div class="editor-field">
                @Html.DisplayFor(model => model.descripcion)
            </div>
        </td>
    </tr><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">@Html.LabelFor(model => model.estado)</td>
		<td>
            <div class="editor-field">
                @Html.DisplayFor(model => model.pEstado.valor)
            </div>
        </td>
</tbody></table>

    <h2>¿Esta seguro que desea pasar a inactivo este ambiente?</h2>           
    <p>
            <input type="submit" value="Aceptar" name = "button" align = "center" />
            <input type="submit" value="Cancelar" name = "button" align = "center" />
    </p>

        </fieldset>
}

<div>
    @Html.ActionLink("Regresar", "Index")
</div>


